package com.gxa.clientproduct.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Author: fenglin
 * @Date:2020/11/11 10:38
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_user")
public class User implements Serializable {

//    user_id	id
//    user_img	会员头像
//    user_username	会员昵称
//    user_name	会员姓名
//    user_sex	会员性别
//    user_area	会员地区
//    user_phone	会员手机号
    @Id
    @Column(name = "user_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)//自动增长
    private  Integer id;        //id

    @Column(name = "user_img")
    private  String img;        //头像

    @Column(name = "user_username")
    private  String username;   //呢称

    @Column(name = "user_name")
    private  String name;       //姓名

    @Column(name = "user_sex")
    private  Boolean sex;        //性别

    @Column(name = "user_area")
    private  String area;   //会员地区

    @Column(name = "user_phone")
    private  String phone; //会员手机号
    @Column(name = "user_score")
    private  int score;//积分
    @Column(name = "user_luck")
    private  String luck;//中奖状态




}
